<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <title>{$Think.lang.coupons}-{$tpshop_config['shop_info_store_title']}</title>
    <meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}" />
    <meta name="description" content="{$tpshop_config['shop_info_store_desc']}" />    
    <link rel="stylesheet" href="__STATIC__/css/index.css" type="text/css">
    <link rel="stylesheet" href="__STATIC__/css/page.css" type="text/css">
    <script src="__STATIC__/js/jquery-1.10.2.min.js"></script>
    <script src="__STATIC__/js/slider.js"></script>
</head>

<body>
<!--------头部开始-------------->
<include file="Public/header" />
<!--------头部结束-------------->

    <div class="breadcrumb-area">   
<div class="layout"> 
	    <foreach name="navigate_user" key="k" item="v">
	        <if condition="$k neq '首页'"> > </if>  
            <a href="{$v}">{$k}</a> 
        </foreach>
    </div>
</div>
<div class="layout pa-to-10 fo-fa-ar">
    <!--菜单-->
    <include file="User/menu" />
    <!--菜单-->
    <div class="fr wi872">
        <div class="he50 wddd">
            <div class="fl ddd-h2">
                <h2><span>{$Think.lang.hasexpired} </span></h2>
            </div>
            <div class="fr">
                <div class="po-re zjs">
                    <ul>
                        <li id="j-s" class="fl"><a href="{:U('Home/User/coupon')}"><span>{$Think.lang.notuse} </span></a></li>
                        <li id="j-s" class="fl"><a href="{:U('Home/User/coupon',array('type'=>1))}"><span>{$Think.lang.beenused} </span></a></li>
                        <li id="j-s" class="fl"><a href="{:U('Home/User/coupon',array('type'=>2))}"><span>{$Think.lang.hasexpired} </span></a></li>
                        
                        <li id="q-s" class="fl cullent"><a href="{:U('Home/User/couponlist')}"><span>{$Think.lang.hasexpired} </span></a></li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="wddd-js ov-in">
            <div class="list-group-title">
                <table class="merge-tab" border="0" cellpadding="0" cellspacing="0">
                    <thead>
                    <tr>
                        <th width="200" style="padding-right: 20px;"></th>
                        <th  width="252">{$Think.lang.coupons} </th>
                        <th  width="180" >{$Think.lang.usefullife} </th>
                        <th ></th>
                    </tr>
                    </thead>
                </table>
            </div>
           
            <div class="merge-list">
        
                <div class="ma-0--1">
                    <div class="o-pro">
					
                       
                        <table border="0" cellpadding="0" cellspacing="0">
                            <tbody>
                            <volist name="coupon_list" id="coupon">
                                <tr>
                                    <td width="200" ><img src="{$coupon.original_img}" style="height: 60px; width: 200px;margin-right:20px;" ></td>
                                    <td style="text-align: left; padding-left: 15px;">
                                    <if condition="$coupon.cateid eq '1'">{$Think.lang.full_court_man}全场满{$coupon.condition}{$Think.lang.jian1}{$coupon.money}</if>
                                    <if condition="$coupon.cateid eq '2'">{$Think.lang.full_court}全场{$coupon.expression}{$Think.lang.zhe} </if>
                                    <if condition="$coupon.cateid eq '3'">{$Think.lang.designated_commodity_subtraction} {$coupon.money}</if></td>
                                    <td ><span>{$coupon.use_end_time|date='Y-m-d H:s',###}</span></td>
                                    <td ><a href="" class="cancel_order" style="margin-bottom: 5px;display: none;">{$Think.lang.details} </a><a href="javascript:void();" onClick="save_coupon({$coupon.id})" class="gopay coupon_{$coupon.id}" style="border: none;">{$Think.lang.hasexpired}领取优惠券</a></td>
                                   
                                </tr>
                            </volist>

                            </tbody>
                        </table>
                    </div>
                </div>
            </div>
        </div>
        <div>{$page}</div>
    </div>
</div>
<div class="he80"></div>
<!--------footer-开始-------------->
<include file="Public/footer" />
<!--------footer-结束-------------->


</body>


<script language="javascript">



 function save_coupon(id)
 {	 	
		$.ajax({
			type : "GET",
			dataType: "json",
			//url:"{:U('Mobile/Coupon/save_coupon')}",
			url:"/index.php?m=Home&c=User&a=save_coupon&id="+id,//+tab,			
			//data:{id:id},
			success: function(data)
			{
				if(data.status=="-1")
					//$.artTip(data.msg, 800)
					alert(data.msg);
				else  
				{
					
					$(".coupon_"+data.result).css({"background-color":"#797979"});
					$(".coupon_"+data.result).html('{$Think.lang.has_been_received} ');
	
					//alert(data.msg);
					
					//$.artTip(data.msg, 800)
				}
			}
		}); 
 }

</script>

</html>>>>